package com.zhaoyan.reader;

import java.io.IOException;
import java.util.List;

import com.bot.utils.FileUtils;

/**
 * @author zhaoyan
 *
 *	2020年3月2日
 */
public class ReaderUtils {
	
	
	public static List<String> readerUtils(String fileName) throws IOException {
		
		return FileUtils.readLines(fileName);
	}

	
	public static boolean hasText(String msg) {
		
		if(msg.trim().length() > 0) {
			return true;
		}
		return false;
	}
	
	public static boolean isNumber(String num) {
		
		num.substring(1);
		
		String reg = "^[0-9]*$";
		
		if(num.matches(reg)) {
			return true;
		}
		
		return false;
	}
}
